package com.ruantu.clothing.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import com.ruantu.clothing.entity.UserRole;

public interface UserRoleDao {

    int addUserRole(List<UserRole> ur);

    int delUserRole(int userid);

    public List<Integer> findAllroleId(int userid);

    @Select("select count(1) from user_role where roleid =#{roleid}")
    int findCount(int roleid);

    @Delete("delect from user_role where roleid=#{roleId}")
    int delUserRoleForRoleId(int roleId);
}
